-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Load from url encoded json #500
base: main
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for 3dstreet-core-builds ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
@@ -67,14 +67,58 @@ AFRAME.registerComponent('streetmix-loader', { | |||
streetmixStreetURL: { type: 'string' }, | |||
streetmixAPIURL: { type: 'string' }, | |||
showBuildings: { default: true }, | |||
name: { default: '' } | |||
name: { default: '' }, | |||
streetmixJSON: { type: 'string', default: '' } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this could be set directly on the street
component instead of streetmix-loader
component? there is already a property called JSON
on the street
component?
Thanks please see: https://github.com/3DStreet/3dstreet/pull/500/files#r1529712137 |
to load from url encoded streetmix json you need:
StreetmixAPIURL
parameter in thestreetmix-loader
component of the #default-street element. String can be encoded through encodeURIComponent func in console or here for example: https://www.urlencoder.org/http://localhost:7001/#streetmix-json:
orhttp://localhost:7001/#3dstreet-json:
for 3dstreet data